package com.sakura.oj.model.enums;

import lombok.Getter;

/**
 * 题目提交状态枚举
 *
 * @author Sakura
 */
@Getter
public enum ProblemSubmitStatusEnum {

    // 0-待判题，1 判题中, 2-通过，3-失败
    WAITING(0, "待判题"),
    RUNNING(1, "判题中"),
    ACCEPTED(2, "通过"),
    FAILED(3, "失败");

    final Integer value;
    final String text;

    ProblemSubmitStatusEnum(Integer value, String text) {
        this.value = value;
        this.text = text;
    }


}
